home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / PASCAL / 0187.ZIP / PASGAME.DOC < prev    next >
Text File  |  1985-01-20  |  7KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.              These  programs  were put together to help me learn  PASCAL. 
  7.         They  function  fairly well as games and are  provided  for  your 
  8.         amusement.  Although  intructions  are provided by each  program, 
  9.         a brief description of each program is provided below.
  10.  
  11.         ARTILLRY.PAS
  12.             This is a typical cannon shooting game.  You pick an angle to 
  13.             fire the cannon at and,  if you get close enough, you hit the 
  14.             enemy.
  15.  
  16.         BACCARAT.PAS
  17.             Baccarat  is  a  card game popular in Europe.  It is  a  high 
  18.             stakes gambling game favored by the rich (us poor types can't 
  19.             afford it).  The player and the bank get two cards each. Tens 
  20.             and  face cards count 0,  number cards count their value  and 
  21.             aces  count  one.  Each  player totals his  cards  modulo  10 
  22.             (anything over 10 is dropped) and the higher total  wins.  An 
  23.             additional card may be added if desired. A total of 8 or 9 on 
  24.             the  initial  two  cards  is  called  a  "NATURAL"  and  wins 
  25.             immediately.  An example of counting; dealt an ace and a six, 
  26.             the  player has a total of seven;  dealt a jack and a  three, 
  27.             the  player has a total of three;  dealt a five and an eight, 
  28.             the player has a total of three (thirteen minus ten).
  29.  
  30.         BJGAME.PAS
  31.             This is the time honored game of blackjack.  This is a pretty 
  32.             rudimentary  version  of the game as splitting  and  doubling 
  33.             down are not allowed.  Blackjacks are honored,  but pay  only 
  34.             even money. Blackjack pushes are won by the house. The dealer 
  35.             plays  on even if you bust and thus can also bust.  This is a 
  36.             push (no bet).
  37.  
  38.         BLACKBOX.PAS
  39.             This  a game to guess where a hidden object (or objects)  are 
  40.             in  a black box.  You do this by shooting balls into the  box 
  41.             and  observing  where  they exit  (if  they  exit).  This  is 
  42.             affected by the way the ball enetering approaches the waiting 
  43.             object.  If  it  hits head on,  the ball is absorbed,  if  it 
  44.             passed between two objects separated by one space,  the  ball 
  45.             is  reflected  back to the source,  if it is adjacent  to  an 
  46.             object on the edge, the ball is reflected back to the source, 
  47.             if  it is diagonal to an object,  the ball is reflected at  a 
  48.             right angle to the original path.
  49.  
  50.         BLOCK.PAS
  51.             This is a block letter producer.
  52.  
  53.         BOGGLE.PAS
  54.             This  is a version of the ever popular number  guessing  game 
  55.             mastermind.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                         1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.         CHUCKLCK.PAS
  71.             This  is a dice rolling game.  You pick a number and bet that 
  72.             at least one of three dice rolled will be that number.
  73.  
  74.         DODGE.PAS
  75.             This  is a dodge'em type game where you are being pursued  by 
  76.             various  meanies  and  your  object  is  to  avoid  them   or 
  77.             preferrably destroy them.
  78.  
  79.         GUESSIT.PAS
  80.             This  is the simpliest game,  guessing a number between 1 and 
  81.             100. You are told if you are high or low.
  82.  
  83.         HANGMAN.PAS
  84.             This a typical hangman program.  It has a list of words  (see 
  85.             MAKEFILE.PAS),  selects one and then you guess the letters in 
  86.             the word,  with seven incorrect guesses causing the man to be 
  87.             hanged.
  88.  
  89.         HORSERAC.PAS
  90.             This  is  a rather complicated horse race game.  A series  of 
  91.             twelve  horses  start the race.  Each horse has  a  different 
  92.             handicap which is a distance to run.  Two dice are rolled and 
  93.             the  horse represented by the total of the dice may be  moved 
  94.             one  length,  or  the horses represented by each die  may  be 
  95.             moved one length.
  96.  
  97.         KENO.PAS
  98.             This  is a version of the Las Vegas gambling game  KENO.  You 
  99.             are  allowed to choose 8 numbers from 1 to 80.  The  computer 
  100.             will  select 20 numbers in the same range.  You win based  on 
  101.             how many of your numbers the computer also selected.
  102.  
  103.         KISMET.PAS
  104.             This game is very similar to Yahtzee. Variations are added by 
  105.             the introduction of color on the dice and an extra roll.  The 
  106.             game ends after six turns by each player.
  107.  
  108.         LANDER.PAS
  109.             This a game where you try to land on a planet.  The planet is 
  110.             unspecified and changes each game.  Thus the gravity changes, 
  111.             as  well as fuel supplies,  speed,  and starting  height.  In 
  112.             addition  there are meteor swarms to contend with.  The  file 
  113.             LANDINST.DAT contains instructions for this game.
  114.  
  115.         LANDINST.DAT
  116.             The instructions for LANDER.PAS.
  117.  
  118.         MAKEFILE.PAS
  119.             This  is the program to create the word file for HANGMAN.PAS. 
  120.             It  must be run to create a word file before HANGMAN  can  be 
  121.             used.
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                                         2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.         NUMCNVRT.PAS
  137.             This  program  lets you practice converting numbers from  one 
  138.             base to another.
  139.  
  140.         OVERUNDR.PAS
  141.             This is a dice betting game.  You pick a number from 2 to  12 
  142.             and roll two dice.  You win (four to one) if the roll matches 
  143.             the  number picked,  or (even money) if both the bet and  the 
  144.             roll are over or under seven.
  145.  
  146.         PASCAL.PAS
  147.             This program prints out Pascal triangles.
  148.  
  149.         PLIFE.PAS
  150.              This is a version of LIFE,  the classic computer  game.  You 
  151.             enter the coordinates of each starting cell until the initial 
  152.             pattern  is set.  You can erase a set cell by re-entering the 
  153.             cell's  coordinates.  Setting coordinates outside  the  basic 
  154.             colony will end the input phase.  The colony will cycle until 
  155.             one  of three things happen;  1) the colony dies out,  2) the 
  156.             colony stabilizes (no births or deaths),  or 3) a key on  the 
  157.             keyboard is pressed.
  158.  
  159.         SNAKE.PAS
  160.             In  this game,  you try to get the treasure before the  snake 
  161.             roaming the screen can get you. The snake will ignore you for 
  162.             a while,  but will get REAL interested as you build up a cash 
  163.             supply.  Your object is to get the cash and get out the door. 
  164.             Use the U, N, H, and J keys to go up, down, left and right.
  165.  
  166.         TELEPHON.PAS
  167.             This  program  generates  letter patterns  out  of  telephone 
  168.             numbers.
  169.  
  170.         TWINKLE.PAS
  171.             This  program fills the screen with stars then erases them in 
  172.             interesting patterns.
  173.  
  174.         WUMPUS.PAS
  175.             This is a typical game of Hunt the Wumpus.
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.                                         3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.